import request from '@/utils/request'

export default {
 /**
 * @description 上传图片
 * */
  uploadImg(data,onUploadProgress) {
    return request({
      headers: {
        repeatSubmit: false
      },
      url: '/base/upload',
      method: 'post',
      data,
      onUploadProgress
    })
  },
  /**
   * @description 上传文件
   * */
  uploadFile(data,onUploadProgress) {
    return request({
      headers: {
        repeatSubmit: false
      },
      url: '/base/upload-file',
      method: 'post',
      data,
      onUploadProgress
    })
  }
}
